package com.mybdqn.service;

import com.mybdqn.pojo.UserRole;
import java.util.List;
import java.util.Map;

/**
* Service Interface UserRole
*
* 2017-12-14
*/
public interface UserRoleService {

    /**
     * 通过主键Id查询UserRole
     */
    public UserRole getUserRoleById(Integer id)throws Exception;

    /**
     * 通过条件Map集合查询UserRole
     */
    public List<UserRole> getUserRoleListByMap(Map<String, Object> param)throws Exception;

	/**
	 * 通过条件Map集合查询UserRole记录总数
	 */
	public Integer getUserRoleRecCountByMap(Map<String, Object> param)throws Exception;

    /**
     * 添加UserRole新记录
     */
    public Integer insertUserRole(UserRole userRole)throws Exception;

    /**
      * 更新UserRole记录
      */
    public Integer updateUserRole(UserRole userRole)throws Exception;

    /**
      * 通过主键Id删除UserRole
      */
    public Integer deleteUserRoleById(Integer id)throws Exception;

}